Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BaseCodec to the docs #2290

Merged
merged 1 commit into from
Oct 5, 2024
Merged

Conversation

dstansby
Copy link
Contributor

@dstansby dstansby commented Oct 2, 2024

This renames _Codec to CodecBase, so that it gets documented and linked from e.g. ArrayArrayCodec, which is currently missing a link to it.

I think in general it's nicer to document the full class heirarchy, but put warnings where we don't expect users to use specific classes. This fixes some broken links, a small part of #2291

@dstansby dstansby added documentation Improvements to the documentation V3 Affects the v3 branch labels Oct 2, 2024
@@ -34,11 +35,15 @@
CodecOutput = TypeVar("CodecOutput", bound=NDBuffer | Buffer)


class _Codec(Metadata, Generic[CodecInput, CodecOutput]):
class CodecBase(Metadata, Generic[CodecInput, CodecOutput]):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore this suggestion, but somehow the name BaseCodec seems a bit more natural than CodecBase. Maybe it seems a bit more consistent with names like RemoteStore which follow the <Qualification><QualifiedEntity> schema?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I think that's a good suggestion, changed

@dstansby dstansby changed the title Add CodecBase to the docs Add BaseCodec to the docs Oct 5, 2024
@dstansby dstansby requested a review from d-v-b October 5, 2024 20:03
@d-v-b d-v-b merged commit 046c174 into zarr-developers:v3 Oct 5, 2024
20 checks passed
@dstansby dstansby deleted the doc-codecbase branch October 5, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements to the documentation V3 Affects the v3 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants